package com.design.singleton.hungry;

/**
 * @auther LiZiBa
 * @date 2020/8/7 22:38
 * @description:优点 -- 效率高，没有任何锁
 *              缺点 -- 内存浪费
 **/
public class HungrySingleton {

    private static final HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance(){
        return hungrySingleton;
    }
}
